package org.gpf.singleton;

/**
 * 单态模式的懒汉式实现：类加载的时候什么都不做【非线程安全】
 * @author gaopengfei
 * @date 2015-4-21 下午12:48:25
 */
public class Singleton2 {

	private static Singleton2 singleton = null;

	private Singleton2() {
		
	}
	
	public static final Singleton2 getInstance(){
		
		if(singleton == null)
			singleton = new Singleton2();
		return singleton;
	}
}
